package com.boot.demo.dao;

import com.boot.demo.bean.SysRole;
import com.boot.demo.bean.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface SysRoleDao {
    /**
     * 获取用户对应的权限
     * @param userInfo
     * @return
     */
    Set<String> getRolesByUser(@Param("user") UserInfo userInfo);
    List<SysRole> getPermissionByRole();
}
